package com.gcj.study03.util;

/**
 * 获取系统项目路径
 */
public class getPath {
    public static void main(String[] args) {
    //根目录 System.getProperty("user.dir")
        System.out.println(System.getProperty("user.dir"));
        /*System.out.println(System.getProperty("user.dir"));
        System.out.println(this.getClass().getResource(""));
        System.out.println(this.getClass().getResource(""));

        System.out.println(this.getClass().getResource("/").getPath());

        System.out.println(this.getClass().getResource("").getPath());

        System.out.println(this.getClass().getClassLoader().getResource(""));

        System.out.println(System.getProperty("user.dir"));

        System.out.println(System.getProperty("java.class.path"));*/
    }
}
